﻿using System;

namespace CoreEx.Common.Ioc
{
    /// <summary>
    /// Represents a class that is capable of finding a <see cref="Type"/> based on the type name.
    /// </summary>
    public interface ITypeFinder
    {
        /// <summary>
        /// Searches for a <see cref="Type"/> based on the <paramref name="typeName"/>
        /// </summary>
        /// <param name="typeName">The name of the <see cref="Type"/> to search for.</param>
        /// <returns>The <see cref="Type"/> as identified by the <paramref name="typeName"/>, otherwise null.</returns>
        Type Find(string typeName);
    }
}
